﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class computer
    {
        private string brand;

        private InterfaceUSB usb1;
        private InterfaceUSB usb2;
        

        
        public computer(string brand)
        {
            this.brand = brand;
        }
        public string Brand { get; set; }
        
        public int MyProperty { get; set; }
        internal InterfaceUSB Usb1 { get => usb1; set => usb1 = value; }
        internal InterfaceUSB Usb2 { get => usb2; set => usb2 = value; }

        public void start() 
        {
            Console.WriteLine("{0}的电脑开机",this.brand);
        }
        public void end() 
        {
            Console.WriteLine("{0}的电脑关机", this.brand);
        }

        public void readdate() 
        {
            Usb1.read();
            Usb2.read();
        }
        public void writedate() 
        {
            Usb1.write();
            Usb2.write();
        }

       
    }
}
